package com.lainiao.request;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  请求转发
 *      配合使用
 */
@WebServlet("/fc")
public class request03_ForwardCopy extends HttpServlet {
    @Override
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        // 接收客户端的请求参数
        String uname = request.getParameter("uname");
        System.out.println("Forward-Copy uname：" + uname);

    }
}
